package com.pshcp.domain.model;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import java.util.Date;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统消息表
 * </p>
 *
 * @author auto generator
 * @since 2022-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(name = "t_message_notification")
public class MessageNotification implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 标题
     */
    private String title;

    private String description;

    /**
     * 内容
     */
    private String content;

    /**
     * 类型
     * 0入院
     * 1挂号
     * 2退号
     * 3缴费
     */
    private Integer messageType;

    /**
     * 通知的id，用户id
     */
    private Long userId;

    /**
     * 类型0 医生 1患者
     */
    private Integer userType;

    /**
     * 数据id
     */
    private Long dataId;

    /**
     * 0 未读 1已读
     */
    private Integer readFlag;
    /**
     * 状态 0正常 1删除
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新时间
     */
    private Date updateTime;


}
